Skip to content

Change the mousemove event listener to the body #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

2233ggbb
Copy link

@2233ggbb 2233ggbb commented Oct 8, 2024

  • 将mousemove事件监听放在body上,这样拖动滑块时即使鼠标离开了滑块,也能继续拖动
  • 移动端因为没有类似于mouseleave的事件,导致即使不在body上监听move事件,效果也一样,这样反而将移动和pc端两种交互统一了
  • 改动作为新feature
  • 拖动滑块时鼠标脱离滑块就触发了验证事件 #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant